package com.designpatterns.factory.factory1.pizza;

import java.util.ArrayList;

/**
 * @author Brook
 */
public abstract class Pizza {
    String name;
    String dough;
    String sauce;
    ArrayList toppings = new ArrayList();

    public void prepare() {
        System.out.println("Prepare " + name);
        System.out.println("Tossing dough...");
        System.out.println("Adding sacuce...");
        System.out.println("Adding toppings: ");
        for (Object topping : toppings) {
            System.out.println("  " + topping);
        }
    }

    public void bake() {
        System.out.println("Bake for minutes at 350");
    }

    public void cut() {
        System.out.println("Cutting the pizza into diagonal slices");
    }

    public void box() {
        System.out.println("Place pizza in official PizzaStroe box");
    }

    public String getName() {
        return name;
    }
}
